package cn.kgc.service;

import cn.kgc.entity.Teacher;

import java.util.List;

public interface TeacherService {
    //查询方法
    List<Teacher> search(int currentPage,int currentSize,String jobnum,String name,String specialty);
    //    计算总的记录数
    int totalCount(String jobnum,String name,String specialty);
    //增加方法：
    int add(Teacher teacher);
    //计算总页数
    int totalPage(int pageSize,String jobnum,String name,String specialty);

    //根据id查找teacher
    Teacher findById(String ids);
    //修改teacher获取影响行数
    int modifyTeacher(Teacher teacher);

}
